Skip to main content

Captured-Events

We capture the following events in our system and below table describes the events and data captured along with it

Authentication Events:

NOTE : These Events are captured via Keycloak Events as dicussed in overview.

1. Authentication Events

Serial NumberEvent NameEvent TypeLogged Data
1Successful LoginAuth:SuccessfulLoginDateTime, UserEmail, EventType
2Login FailureAuth:LoginFailureDateTime, UserEmail, EventType
3LogoutAuth:LogoutDateTime, UserEmail, EventType

Sample Log : Login Failure

2025-02-03 16:52:53 2025-02-03 11:22:53,492 WARN  [org.keycloak.events] (executor-thread-3) type="LOGIN_ERROR", realmId="2c7e00b2-907d-46f5-9f5e-9cd3a8747228", clientId="ui", userId="06ad90a8-a8f7-4776-aca3-05dbd38ae9ba", ipAddress="192.168.65.1", error="invalid_user_credentials", auth_method="openid-connect", auth_type="code", redirect_uri="http://localhost:3001/", code_id="6a1a9439-ef1f-4c8b-87b2-371ad699698f", username="[email protected]"

Sample Log : Logout Failure

2025-02-03 16:50:46 2025-02-03 11:20:46,919 WARN  [org.keycloak.events] (executor-thread-4) type="LOGOUT_ERROR", realmId="2c7e00b2-907d-46f5-9f5e-9cd3a8747228", clientId="ui", userId="null", ipAddress="192.168.65.1", error="invalid_redirect_uri", redirect_uri="http://localhost:3001"

Application Events:

NOTE : These Events are captured via NestJS API as dicussed in overview.

Following Common Event Data Will be present in all the events captured by NestJS API.

FieldTypeDescription
requestIdstringUnique identifier for the request
dateTimeDateThe date and time when the event occurred
userIdstringUnique identifier for the user who made the request
keycloakUserIdstringUnique identifier for the user in Keycloak who made the request
userEmailstringEmail address of the user who made the request
eventTypeApiEventTypeType of the event
eventMetadataDictOptional Metadata related to the event

2. Admin Events

Serial NumberEvent NameEvent TypeEvent Metadata
1IAM Role AssignmentAdmin:RoleAssignmentUserId, UserEmail, RolesAssigned
2IAM Role RemovalAdmin:RoleRemovalUserId, UserEmail, RolesAssigned

3. AI System Events

Serial NumberEvent NameEvent TypeEvent Metadata
1AI System ConnectAISystem:ConnectAISystemAISystemId, AISystemName, AISystemType, AISystemOwner
2AI System RemoveAISystem:RemoveAISystemAISystemId, AISystemName, AISystemType, AISystemOwner

4. DynamoEval Events

Serial NumberEvent NameEvent TypeEvent Metadata
1Eval Test StartEval:TestStartTestId, TestType
2Eval Test FailureEval:TestFailureTestId, TestType, TestFailureReason
3Eval Test CompletionEval:TestCompletionTestId, TestType

5. DynamoGuard Events

Serial NumberEvent NameEvent TypeEvent Metadata
1Analyze Request ResponseGuard:AnalyzePolicyMethod
2Policy CreationGuard:PolicyCreationPolicyId, PolicyTitle, PolicyMethod, PolicyOwner
3Policy DeletionGuard:PolicyDeletionPolicyId, PolicyTitle, PolicyMethod, PolicyOwner
4Policy Creation ReviewGuard:PolicyCreation:ReviewPolicyId, PolicyTitle, PolicyMethod
5Policy Creation/Manage Train PolicyGuard:PolicyCreation/Manage:TrainPolicyPolicyId, PolicyTitle, PolicyMethod
6Policy Creation/Manage Train Policy ErrorGuard:PolicyCreation/Manage:TrainPolicyErrorPolicyId, PolicyTitle, PolicyMethod
7Policy Creation/Manage SuccessGuard:PolicyCreation/Manage:SuccessPolicyId, PolicyTitle, PolicyMethod
8Manage Policy Training Data DeleteGuard:ManagePolicy:TrainingData:DeletePolicyId, PolicyTitle, PolicyMethod
9Policy Creation DeploymentGuard:PolicyCreation:DeploymentPolicyId, PolicyTitle, PolicyMethod
10Manage Policy Edit Policy DefinitionGuard:ManagePolicy:EditPolicyDefinitionPolicyId, PolicyTitle, PolicyMethod
11Apply PolicyGuard:ApplyPolicyPolicyId, PolicyTitle, AISystemId, AISystemName, PolicyMethod
12Remove PolicyGuard:RemovePolicyPolicyId, PolicyTitle, AISystemId, AISystemName, PolicyMethod